inherited dtmda_InOutType: Tdtmda_InOutType
  OldCreateOrder = True
  Left = 648
  Top = 268
  Height = 324
  Width = 509
  inherited adsMaster: TADODataSet
    CursorType = ctStatic
    CommandText = 'select * from V_da_InOutType'
    object adsMasterID: TStringField
      FieldName = 'ID'
    end
    object adsMastertype: TWordField
      DisplayLabel = #20986#20837#24211#31867#22411
      FieldName = 'Type'
    end
    object adsMastercode: TStringField
      DisplayLabel = #32534#30721
      FieldName = 'Code'
    end
    object adsMastername: TStringField
      DisplayLabel = #21517#31216
      FieldName = 'Name'
      Size = 50
    end
    object adsMasterHelperCode: TStringField
      DisplayLabel = #21161#35760#30721
      FieldName = 'HelperCode'
      Size = 50
    end
    object adsMasterStockID: TStringField
      DisplayLabel = #20179#24211'ID'
      FieldName = 'StockID'
    end
    object adsMasterStockCode: TStringField
      DisplayLabel = #20179#24211#32534#30721
      FieldName = 'StockCode'
    end
    object adsMasterStockName: TStringField
      DisplayLabel = #20179#24211
      FieldName = 'StockName'
    end
    object adsMasterConArea: TStringField
      DisplayLabel = #23545#35937#33539#22260'ID'
      FieldName = 'ConArea'
    end
    object adsMasterConAreaName: TStringField
      DisplayLabel = #23545#35937#33539#22260
      FieldName = 'ConAreaName'
      ReadOnly = True
      Size = 12
    end
    object adsMasterInOutType: TStringField
      DisplayLabel = #20986#20837#31867#22411'ID'
      FieldName = 'InOutType'
    end
    object adsMasterInOutTypeName: TStringField
      DisplayLabel = #20986#20837#31867#22411
      FieldName = 'InOutTypeName'
      Size = 50
    end
    object adsMasterBillType: TStringField
      DisplayLabel = #28304#21333#31867#22411'ID'
      FieldName = 'BillType'
    end
    object adsMasterBillTypeName: TStringField
      DisplayLabel = #28304#21333#31867#22411
      FieldName = 'BillTypeName'
    end
    object adsMasterBillcategory: TStringField
      DisplayLabel = #30003#35831#31867#21035
      FieldName = 'Billcategory'
    end
    object adsMasterHasTune: TBooleanField
      DisplayLabel = #35843#25320#21542
      FieldName = 'HasTune'
    end
    object adsMasterHasRefuel: TBooleanField
      DisplayLabel = #25442#26009#21542
      FieldName = 'HasRefuel'
    end
    object adsMasterHasBack: TBooleanField
      DisplayLabel = #36864#36135#21542
      FieldName = 'HasBack'
    end
    object adsMasterHasStop: TBooleanField
      DisplayLabel = #31105#29992#21542
      FieldName = 'HasStop'
    end
    object adsMasterStoper: TStringField
      DisplayLabel = #31105#29992#20154
      FieldName = 'Stoper'
    end
    object adsMasterStopDate: TDateTimeField
      DisplayLabel = #31105#29992#26085#26399
      FieldName = 'StopDate'
    end
    object adsMasterStopMemo: TStringField
      DisplayLabel = #31105#29992#35828#26126
      FieldName = 'StopMemo'
      Size = 50
    end
    object adsMasterHasUse: TBooleanField
      DisplayLabel = #20351#29992#21542
      FieldName = 'HasUse'
    end
    object adsMasterHasSysdefine: TBooleanField
      DisplayLabel = #31995#32479#23450#20041#21542
      FieldName = 'HasSysdefine'
    end
    object adsMasterHasDefault: TBooleanField
      DisplayLabel = #40664#35748#21542
      FieldName = 'HasDefault'
    end
    object adsMasterHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 200
    end
  end
  inherited adsMasterEdit: TADODataSet
    CursorType = ctStatic
    CommandText = 'Select * from da_InOutType'
    object adsMasterEditID: TStringField
      FieldName = 'ID'
    end
    object adsMasterEdittype: TWordField
      DisplayLabel = #20986#20837#24211#31867#22411
      FieldName = 'Type'
    end
    object adsMasterEditcode: TStringField
      DisplayLabel = #32534#30721
      FieldName = 'Code'
    end
    object adsMasterEditname: TStringField
      DisplayLabel = #21517#31216
      FieldName = 'Name'
      OnChange = adsMasterEditnameChange
      Size = 50
    end
    object adsMasterEditHelperCode: TStringField
      DisplayLabel = #21161#35760#30721
      FieldName = 'HelperCode'
      Size = 50
    end
    object adsMasterEditStockID: TStringField
      DisplayLabel = #20179#24211'ID'
      FieldName = 'StockID'
    end
    object adsMasterEditConArea: TStringField
      DisplayLabel = #23545#35937#33539#22260
      FieldName = 'ConArea'
    end
    object adsMasterEditInOutType: TStringField
      DisplayLabel = #20986#20837#31867#22411'ID'
      FieldName = 'InOutType'
    end
    object adsMasterEditBillType: TStringField
      DisplayLabel = #28304#21333#31867#22411
      FieldName = 'BillType'
    end
    object adsMasterEditBillcategory: TStringField
      DisplayLabel = #30003#35831#31867#21035
      FieldName = 'Billcategory'
    end
    object adsMasterEditSrcInOutType: TStringField
      DisplayLabel = #28304#20986#20837#31867#22411
      FieldName = 'SrcInOutType'
    end
    object adsMasterEditHasBack: TBooleanField
      DisplayLabel = #36864#36135#21542
      FieldName = 'HasBack'
    end
    object adsMasterEditHasTune: TBooleanField
      DisplayLabel = #35843#25320#21542
      FieldName = 'HasTune'
    end
    object adsMasterEditHasRefuel: TBooleanField
      DisplayLabel = #25442#26009#21542
      FieldName = 'HasRefuel'
    end
    object adsMasterEditHasUse: TBooleanField
      DisplayLabel = #20351#29992#21542
      FieldName = 'HasUse'
    end
    object adsMasterEditHasSysdefine: TBooleanField
      DisplayLabel = #31995#32479#23450#20041#21542
      FieldName = 'HasSysdefine'
    end
    object adsMasterEditHasDefault: TBooleanField
      DisplayLabel = #40664#35748#21542
      FieldName = 'HasDefault'
    end
    object adsMasterEditHasStop: TBooleanField
      DisplayLabel = #31105#29992#21542
      FieldName = 'HasStop'
    end
    object adsMasterEditStoper: TStringField
      DisplayLabel = #31105#29992#20154
      FieldName = 'Stoper'
    end
    object adsMasterEditStopDate: TDateTimeField
      DisplayLabel = #31105#29992#26102#38388
      FieldName = 'StopDate'
    end
    object adsMasterEditStopMemo: TStringField
      DisplayLabel = #31105#29992#35828#26126
      FieldName = 'StopMemo'
      Size = 50
    end
    object adsMasterEditHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterEditChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterEditCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterEditWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterEditWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterEditModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterEditModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterEditRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 200
    end
    object adsMasterEditres_StockName: TStringField
      DisplayLabel = #20179#24211
      FieldKind = fkLookup
      FieldName = 'res_StockName'
      LookupDataSet = res_Stock
      LookupKeyFields = 'StockID'
      LookupResultField = 'StockName'
      KeyFields = 'StockID'
      Size = 50
      Lookup = True
    end
    object adsMasterEditres_ConAreaName: TStringField
      DisplayLabel = #23545#35937#33539#22260
      FieldKind = fkLookup
      FieldName = 'res_ConAreaName'
      LookupDataSet = res_ConArea
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'ConArea'
      Size = 50
      Lookup = True
    end
    object adsMasterEditres_BillTypeName: TStringField
      DisplayLabel = #28304#21333#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_BillTypeName'
      LookupDataSet = res_BillType
      LookupKeyFields = 'BillType'
      LookupResultField = 'BillTypeName'
      KeyFields = 'BillType'
      Size = 50
      Lookup = True
    end
    object adsMasterEditres_InOutTypeName: TStringField
      DisplayLabel = #20986#20837#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_InOutTypeName'
      LookupDataSet = res_xt_InOutType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'InOutType'
      Lookup = True
    end
    object adsMasterEditres_SrcInOutTypeName: TStringField
      DisplayLabel = #26469#28304#20986#20837#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_SrcInOutTypeName'
      LookupDataSet = res_SrcInOutType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'SrcInOutType'
      Size = 50
      Lookup = True
    end
    object adsMasterEditHasHand: TBooleanField
      DisplayLabel = #25163#24037#24405#20837
      FieldName = 'HasHand'
    end
    object adsMasterEditHasSelfCom: TBooleanField
      FieldName = 'HasSelfCom'
    end
  end
  object res_Stock: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select StockID, StockCode, StockName from V_da_Stock'
    Parameters = <>
    Left = 144
    Top = 40
  end
  object res_ConArea: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    CommandText = 'select * from V_da_ConArea'#13#10
    CommandTimeout = 0
    Parameters = <>
    Left = 240
    Top = 40
  end
  object adsStockTree: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    CommandText = 
      'select * from V_da_stock where isnull(HasStop,0)=0'#13#10'order by Dep' +
      'tID, StockCode'
    Parameters = <>
    Left = 240
    Top = 96
  end
  object res_BillType: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select BillType, BillTypeName from V_cw_BillType'
    Parameters = <>
    Left = 144
    Top = 96
  end
  object adsInOutStockType: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select * from V_da_InOutStockType'
    Parameters = <>
    Left = 240
    Top = 160
  end
  object res_xt_InOutType: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select ID, Name from V_xt_InOutType'
    Parameters = <>
    Left = 144
    Top = 160
  end
  object res_SrcInOutType: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Name from da_InOutType'
    EnableBCD = False
    Parameters = <>
    Left = 336
    Top = 40
  end
end
